export class loginByUserName {
  userName: string
  password: string
  constructor(userName: string, password: string) {
    this.userName = userName
    this.password = password
  }
}
export class loginByPhoneNumber {
  userPhone: string
  password: string
  constructor(userPhone: string, password: string) {
    this.userPhone = userPhone
    this.password = password
  }
}
export class registerUser {
  userName: string
  password: string
  userPhone: string
  constructor(userName: string, password: string, userPhone: string) {
    this.userName = userName
    this.password = password
    this.userPhone = userPhone
  }
}
export class baseResponse<Data> {
  status: boolean
  errorType: number
  message: string
  data: Data
  constructor(status: boolean, errorType: number, message: string, data: Data) {
    this.status = status
    this.errorType = errorType
    this.message = message
    this.data = data
  }
}

export class userInfo {
  name?: string
  roleName?: string
  constructor(name?: string, roleName?: string) {
    this.name = name
    this.roleName = roleName
  }
}
export class userPermission {
  permissionName: string
  routerName: string
  constructor(permissionName: string, routerName: string) {
    this.permissionName = permissionName
    this.routerName = routerName
  }
}

export class userMessage {
  messageId: number
  activityId: number
  message: string
  createTime: string // 发送时间
  constructor(activityId: number, message: string, createTime: string, messageId: number) {
    this.activityId = activityId
    this.message = message
    this.createTime = createTime
    this.messageId = messageId
  }
}
